package com.clkj.xiuzheng.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * @author yawang
 */
@ApiModel( value ="t_cl_user" )
@Table( name ="t_cl_user" )
public class User  implements Serializable {

    @Id
   	@Column(name = "user_id" ,updatable = false)
	@ApiModelProperty( value="null")
	private Integer userId;

   	@Column(name = "user_name" )
	@ApiModelProperty( value="null")
	private String userName;

   	@Column(name = "openId" )
	@ApiModelProperty( value="null")
	private String openId;

   	@Column(name = "user_tel" )
	@ApiModelProperty( value="null")
	private String userTel;

    @Column(name = "user_tag" )
    @ApiModelProperty( value="用户类型 0广告牌客户 -1进销存操作人 1进销存前端业务员 -2广告牌推广员,-3广告牌工人")
    private Integer userTag;


    @Column(name = "user_status" )
    @ApiModelProperty( value="用户状态 0不可用 1可用")
    private Integer userStatus;

    @Column(name = "user_password" )
    @ApiModelProperty( value="用户密码")
    private String userPassword;

    @Column(name = "company_id" )
    @ApiModelProperty( value="公司Id")
    private Integer companyId;

    @Column(name = "user_balance" )
    @ApiModelProperty( value="工人余额")
    private Double userBalance;


   	@Transient
   	private UserPut userPut;
    @Transient
    private Integer promoterId;




    public Integer getUserId() {
    return userId;
  }


    public void setUserId(Integer userId) {
    this.userId = userId;
  }


  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }


  public String getOpenId() {
    return openId;
  }

  public void setOpenId(String openId) {
    this.openId = openId;
  }


  public String getUserTel() {
    return userTel;
  }

  public void setUserTel(String userTel) {
    this.userTel = userTel;
  }

    public UserPut getUserPut() {
        return userPut;
    }

    public void setUserPut(UserPut userPut) {
        this.userPut = userPut;
    }

    public Integer getUserTag() {
        return userTag;
    }

    public void setUserTag(Integer userTag) {
        this.userTag = userTag;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }


    public Integer getPromoterId() {
        return promoterId;
    }

    public void setPromoterId(Integer promoterId) {
        this.promoterId = promoterId;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }


    public Double getUserBalance() {
        return userBalance;
    }

    public void setUserBalance(Double userBalance) {
        this.userBalance = userBalance;
    }
}
